package com.yonyou.pmclouds.workstopreport.process;

import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.picture.entity.PictureParamVO;
import com.yonyou.pmclouds.picture.rmiitf.PictureRemoteService;
import com.yonyou.pmclouds.workstopreport.entity.WorkStopVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class WorkStopPicAndVideoProcess implements SingleProcessor<WorkStopVO> {

    @Autowired
    private PictureRemoteService pictureService;

    @Override
    public void process(WorkStopVO vo, WorkStopVO orig) throws BusinessException {
        pictureService.updateBillPicture(vo,new PictureParamVO(vo.getPkWorkstopreport(),vo.getPkProject(),vo.getBillType()));
    }
}
